package cn.tedu.management.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;


@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    NOT_LOGIN(100, "未登录"),
    USERNAME_PASSWORD_ERROR(101, "用户名或密码错误"),
    USERNAME_EXISTS(102, "用户名被占用"),
    OPERATION_SUCCESS(201, "操作成功"),
    OPERATION_FAILED(202, "操作失败"),
    UNAUTHORIZED(300,"未授权访问"),
    SERVER_ERROR(500,"服务器内部错误"),
    VALIDATED_ERROR(600, "参数校验失败");
    private Integer state;
    private String message;
}
